﻿
using ProtoBuf;

namespace PnJ.Aliyun.OTS.Models
{
    /// <summary>
    /// 表示一列。
    /// </summary>
    [ProtoContract(Name = "Column")]
    public class Column
    {
        /// <summary>
        /// 该列的列名
        /// </summary>
        [ProtoMember(1, Name = "name", IsRequired = true)]
        public string name { get; set; }
        /// <summary>
        /// 该列的列值
        /// </summary>
        [ProtoMember(2, Name = "value", IsRequired = true)]
        public ColumnValue value { get; set; }

        public Column()
        {

        }
        public Column(string name, ColumnValue value)
        {
            this.name = name;
            this.value = value;
        }
    }
}
